"use client"
import FileUpload from "../components/FileUpload";
// export const metadata = {
//   title: "...",
//   description: "...",
// };
import { useRouter } from "next/navigation";
export default function Merge() {
  const router = useRouter();  
  
  function jumpPage(fname){
    router.push("/merge/"+fname)
  }

  return (
    <>
    <h1>Merge PDF Files</h1>
      <FileUpload jumpAction={jumpPage} >
      <h2>Online PDF merge / combine tool</h2>
                        <p />A free online tool for merging (combining) multiple PDF files into a single document. You can merge two or more files simultaneously, even if they have different sizes and page counts.
                        <p/>Rest assured, we do not impose any watermarks on the documents you create. All uploaded files are automatically removed one hour after the upload.
                        <h3>How to merge PDF files?</h3>
                        <p/>Upload all the files you need to merge (you select multiple files for upload at once by pressing and holding Ctrl or Command button and clicking on them in the file browser window or by dragging them in the form above).
                        <p/>Drag and drop the uploaded files to arrange them in your preferred order, then press the button below to initiate the merging process.
                        <p/>After a brief moment, a download icon will appear on the right. Click on it to save your freshly created PDF document or select other actions to perform on merged documents from the drop-down menu.
                        <p/>Remember to save your output file since we will automatically delete all files from our servers one hour after the upload.
                        <hr/>
                        <p/>
                            Maybe instead of joining together PDF files, you wanted to merge multiple pages per sheet?<br/>
                            We have another tool called N-up for that - <a href="/multipage">/multipage</a>
                            .
      </FileUpload>
    </>
  );
}
